import requests
class LoginApi(object):
    @classmethod
    def login(cls,body):
        """
        发送登录请求
        :param body: 请求体
        :return: 响应对象
        """
        url="http://ihrm2-test.itheima.net/api/sys/login"
        resp=requests.post(url,json=body)
        return resp
if __name__ == '__main__':
    body= {"mobile": "13800000002", "password": "123456"}
    data= LoginApi.login(body)
    print(data.json())